package cc.mrbird.febs.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author MrBird
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AccountLoginLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "LoginId", type = IdType.AUTO)
    private Long LoginId;

    /**
     * 账户
     */
    @TableField("accountCode")
    private String accountCode;

    /**
     * 登录时间
     */
    @TableField("loginTime")
    private String loginTime;

    /**
     * 登录地区
     */
    @TableField("local")
    private String local;

    /**
     * 登录IP
     */
    @TableField("loginIp")
    private String loginIp;

    /**
     * 退出时间
     */
    @TableField("loginOutTime")
    private LocalDateTime loginOutTime;

    @TableField("loginStatus")
    private Integer loginStatus;

    @TableField("refuseReason")
    private String refuseReason;

    public AccountLoginLogInfo(Long loginId, String accountCode, String loginTime, String local, String loginIp, LocalDateTime loginOutTime, Integer loginStatus, String refuseReason) {
        LoginId = loginId;
        this.accountCode = accountCode;
        this.loginTime = loginTime;
        this.local = local;
        this.loginIp = loginIp;
        this.loginOutTime = loginOutTime;
        this.loginStatus = loginStatus;
        this.refuseReason = refuseReason;
    }

    public AccountLoginLogInfo() {
    }
}
